package com.youmeek.demo.web.servlet.pojo;

import java.util.List;

/**
 * 角色类
 */
public class Role{

    private Long rId;
    private String rName;
    //一对多
    private List<User> userList;


    @Override
    public String toString() {
        return "Role{" +
                "rId=" + rId +
                ", rName='" + rName + '\'' +
                ", userList=" + userList +
                '}';
    }

    public Long getrId() {
        return rId;
    }

    public void setrId(Long rId) {
        this.rId = rId;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }
}
